package com.mini.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * @author zhangxiaobin
 * @title: BusinessCompanyInfo
 * @description: TODO
 * @date 2020/2/411:03
 */
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BusinessCompanyInfo implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @ApiModelProperty(value = "简称")
    private String shortName;

    @ApiModelProperty(value = "全称")
    private String name;

    @ApiModelProperty(value = "描述")
    private String desc;

    @ApiModelProperty(value = "域名")
    private String domain;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "状态 0启用 1禁用")
    private Integer state;

    @ApiModelProperty(value = "状态 0:老飞天 0：新飞天")
    private Integer domainType;

}
